<div class="tab-pane active">
    <div class="box box-info">
        <div class="box-header with-border">
            <div class="box-title">{{ startDay }}-{{ endDay }}-{{ weekDay }}</div>
        </div>
        <div class="box-body">
            <form class="form-horizontal" role="form">
                <fieldset>
                    <legend>基本信息</legend>
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <td>
                                <table class="table table-bordered">
                                    <tr>
                                        <th class="text-center" >部门</th>
                                        <th class="text-center" >姓名</th>
                                    </tr>
                                    <tr>
                                        <th>{{ dayclears[0].employee.depart.name }}</th>
                                        <th>{{ dayclears[0].employee.name }}</th>
                                    </tr>
                                </table>
                            </td>
                            <td colspan="5" class="text-center" >
                                <table class="table table-bordered">
                                    <tr>
                                        <th class="text-center" >星期</th>
                                        <th class="text-center" >事件任务</th>
                                        <th class="text-center" >日清结果</th>
                                        <th class="text-center" >未达成率</th>
                                        <th class="text-center" >备注</th>
                                    </tr>
                                    <tr ng-repeat="dayclear in dayclears">
                                        <th ng-if="dayclear.temp=='1'" class="text-center">星期一</th>
                                        <th ng-if="dayclear.temp=='2'" class="text-center">星期二</th>
                                        <th ng-if="dayclear.temp=='3'" class="text-center">星期三</th>
                                        <th ng-if="dayclear.temp=='4'" class="text-center">星期四</th>
                                        <th ng-if="dayclear.temp=='5'" class="text-center">星期五</th>
                                        <th ng-if="dayclear.temp=='6'" class="text-center">星期六</th>
                                        <th ng-if="dayclear.temp=='0'" class="text-center">星期日</th>
                                        <td class="text-center">
                                            <input ng-model="dayclear.task" type="text"
                                                   placeholder="事件任务">
                                        </td>
                                        <td>
                                            <select ng-model="dayclear.result">
                                                <option ng-repeat="res in results" value="{{ res.value }}">{{ res.name }}</option>
                                            </select>
                                            <!--<select ng-model="dayclear.result">-->
                                                <!--<option ng-repeat="res in results" ng-selected="res.value==dayclear.result" value="res.value">{{ res.name }}</option>-->
                                            <!--</select>-->
                                        </td>
                                        <td class="text-center">
                                            <input ng-model="dayclear.incomplete_rate" type="text"
                                                   placeholder="未达成率">
                                        </td>
                                        <td class="text-center">
                                            <input ng-model="dayclear.remark" type="text"
                                                   placeholder="备注">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <label   class="col-sm-10 control-label"></label>
                    <div class="col-sm-2">
                        <button class="btn btn-success" type="submit" ng-click="Update(dayclears)">保存修改</button>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>

